package com.ruoyi.system.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.UserNucleicAcidCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/qrcode")
public class UserNucleicAcidCodeController {

    @Autowired
    private UserNucleicAcidCodeService userNucleicAcidCodeService;

    @GetMapping
    public AjaxResult aesAndCode() throws Exception {
        Long uid = 1L;
        Long tid = 1L;
        String base64 = userNucleicAcidCodeService.aesAndCode(uid,tid);
        return AjaxResult.success("成功",base64);

    }


}
